
//import java.util.ArrayList;
//import java.util.List;

public class ListSQLParaHelperTestMethod {
    /*
     * notes:
     * 1.第一个参数是，SQL里面是否有 where ，true，有就加and ，false 就加where，并且把这个值变为 true
     * 2.第二个参数是 StringBuilder 不是 String，参数错了会标红（里面会调用 StringBuilder 的 append 方法）
     * 3.第三个参数是 存放查询条件的值的。condition_value， where db_field_name = "condition_value" ,list.add(condition_value)
     * 4.第四个参数是 存放查询字段， db_field_name
     * 5.第五个参数是 查询条件的值 condition_value
     * */
    /*
    方法不用介绍，把psvm输出一下就行了
    */
    public static void main(String[] args) {
        System.out.println("HelloWorld!");

//        maven 编译的时候
/*
        List<Object> list1 = new ArrayList<>();
        StringBuilder sb1 = new StringBuilder();
        ListSQLParaHelper.addSql_LIKE_Expr(true,sb1, list1,"user.user_id","123");
        System.out.println("addSql_LIKE_Expr :"+ "\t" + sb1.toString().replace("? \n","") + "\"" + list1.get(0).toString() + "\"" );

        List<Object> list2 = new ArrayList<>();
        StringBuilder sb2 = new StringBuilder("");
        ListSQLParaHelper.addSql_LIKE(true,sb2, list2,"user.user_id","123");
        System.out.println("addSql_LIKE :" + "\t" + "\t" + sb2.toString().replace("? \n","")+ "\""  + list2.get(0).toString() + "\"" );

        List<Object> list3 = new ArrayList<>();
        StringBuilder sb3 = new StringBuilder();
        ListSQLParaHelper.addSql_EQUALE_Expr(true,sb3, list3,"user.user_id","123");
        System.out.println("addSql_EQUALE_Expr :" + sb3.toString().replace("? \n","")+ "\""  + list3.get(0).toString() + "\"" );

        List<Object> list4 = new ArrayList<>();
        StringBuilder sb4 = new StringBuilder();
        ListSQLParaHelper.addSql_IN_Expr(true,sb4, "user.user_id","123,123456");
        System.out.println("addSql_IN_Expr :" + sb4.toString().replace("? \n","")+ "\""  + list4.get(0).toString() + "\"" );
*/



//        List<Object> listx = new ArrayList<>();
//        StringBuilder sbx = new StringBuilder();
//        ListSQLParaHelper.addSql_EQUALE_Expr(true,sb, listx,"user.user_id","123");
//        System.out.println("addSql_LIKE :" + "\t" + "\t" + sbx.toString().replace("? \n","") + "\""  + listx.get(0).toString() + "\"" );

    }
}